package com.xhwl.centiotdata.pojo.enums.alarm;

/**
 * @author xh_lwy
 * @description:
 * @date 2022/2/188:57
 */
public enum LanJuAlarmEnum {
    PM10("68436327", "PM10"),
    PM100("", "PM100"),
    TEMP("09863835", "温度"),
    HUMI("93619664", "湿度"),
    SO2("", "二氧化硫"),
    NO2("", "三氧化氮"),
    O3("", "臭氧"),
    CO("", "一氧化碳"),
    CO2("56326964", "二氧化碳"),
    VOC("", "VOC"),
    CH20("05835168", "甲醛"),
    O2("", "氧气"),
    MPA("", "气压"),
    WS("", "风速"),
    WD("", "风向"),
    NOISE("", "噪声"),
    CL2("", "氯气"),
    HCL("", "盐酸"),
    H2S("", "硫化氢"),
    NH3("", "氨气"),
    NMHC("", "非甲烷总烃"),
    PM25("27381158", "PM2.5"),
    TSP("", "TSP"),
    WTHD("", "硬度"),
    WTTBT("", "浊度"),
    NOI("", "负氧离子"),
    RAINFALL("", "降雨量"),
    LUX("", "光照度"),
    NOX("", "NOX"),
    CHA("", "CHA");


    private String code;
    private String desc;

    LanJuAlarmEnum(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }

    public static LanJuAlarmEnum getEnum(String name) {
        for (LanJuAlarmEnum value : values()) {
            if (value.name().equals(name))
                return value;
        }
        return null;
    }
}
